package com.ido.admin.api.service.impl;

import com.ido.admin.api.dao.TbProjectDao;
import com.ido.admin.api.entity.TbProject;
import com.ido.admin.api.service.TbProjectService;
import org.hswebframework.web.id.IDGenerator;
import org.hswebframework.web.service.GenericEntityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TbProjectServiceImpl
        extends GenericEntityService<TbProject, String>
        implements TbProjectService {
    private TbProjectDao ProjectDao; //
    /**
     * 构造器注入
     * @param ProjectDao
     */
    @Autowired
    public TbProjectServiceImpl(TbProjectDao ProjectDao){
         this.ProjectDao = ProjectDao;
    }

    @Override
    protected IDGenerator<String> getIDGenerator() {
        return IDGenerator.MD5;
    }

    @Override
    public TbProjectDao getDao() {
        return ProjectDao;
    }
}
